//笨方法 枚举

#include <bits/stdc++.h>
using namespace std;
const int P = 998244353;
int main() {
  int N;
  cin >> N;
  int ans = 0;
  for (int c = 1; c <= N; c++) {
    for (int b = c + 1; b <= N; b++) {
      for (int a = b + 1; a <= N; a++) {
        if (a % b == c) {
          ans++;
          ans %= P;
        }
      }
    }
  }
  cout << ans;

  return 0;
}